const https = require("https");
//极速数据api接口

const url = "https://api.jisuapi.com/area/province?appkey=0c2ff7278f14af5a";

https.get(url, (res) => {
    let str = "";
    res.on("data", (chunk) => {
        str += chunk
    })
    res.on("end", () => {
        var obj = JSON.parse(str);
        var provinceList = obj.result;
        // console.log(provinceList)
        for (var i = 0; i < provinceList.length; i++) {
            console.log(provinceList[i].name)
            // console.log(provinceList[i])
        }
    })
})